#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>

#if 0
int main() {
	int* p = NULL;
	p = (int*)malloc(5 * sizeof(int));
	if (p == NULL)
	{
		perror("malloc:");
	}
	for (int i = 0; i < 5; i++)
	{
		*(p+i)=i+1;

	}
	for (int i = 0; i < 5; i++)
	{
		printf("%d\n", *(p+i));
		
	}
	free(p);
	p = NULL;
	return 0;
}

//calloc
int main()
{
	int* p = (int*)calloc(10, sizeof(int));
	if (  p!=NULL )
	{
		int i = 0;
		for (int i = 0; i < 10; i++)
		{
			printf("%d", *(p + i));
		}
	}
	free(p);
	p = NULL;
	return 0;
}
#endif

//realloc
int main()
{


	return 0;
}

